home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
tex-k
/
tex-k-archive.past
/
1994.12.gz
/
1994.12
/
000039_karron@mcard27.med.nyu.edu_Wed Dec 7 09:29:50 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-12-30
|
3KB
Received: from mcard27.med.nyu.edu by cs.umb.edu with SMTP id AA17604
(5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Wed, 7 Dec 1994 14:30:15 -0500
Received: by mcard27.med.nyu.edu (921113.SGI.UNSUPPORTED_PROTOTYPE/921111.SGI.ANON_FTP.DBK)
for tex-k@cs.umb.edu id AA08056; Wed, 7 Dec 94 14:29:51 -0500
From: karron@mcard27.med.nyu.edu (Dan Karron karron@nyu.edu)
Message-Id: <9412071929.AA08056@mcard27.med.nyu.edu>
Subject: YY_USE_CONST kausing k-trouble (krist!:)
To: tex-k@cs.umb.edu
Date: Wed, 7 Dec 1994 14:29:50 -0500 (EST)
X-Mailer: ELM [version 2.4 PL23]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2000
Dear Karl-Hacker;
Oh YY if you don't define YY_USE_CONST do UU du thusly and in two files...
lex.yy.c-dist and lex.yy.c
#ifndef YY_USE_CONST
#ifndef const
#define const
#endif
#endif
This causes
accom: Error: /usr/include/stdlib.h, line 102: Qualifier mismatch in prototype, pointer to const char versus pointer to char
extern int system( char *);
---------------------------------^
accom: Error: /usr/include/stdlib.h, line 102: inconsistent prototypes for function system
extern int system( char *);
---------------------------------^
accom: Error: /usr/include/errno.h, line 47: Qualifier mismatch in prototype, pointer to const char versus pointer to char
extern void perror( char *);
---------------------------------^
accom: Error: /usr/include/errno.h, line 47: inconsistent prototypes for function perror
extern void perror( char *);
---------------------------------^
*** Error code 1
I went Krazy trying to find where the header files Konflicted...
The problem is in the define editing out the const in some include
files and not in others... afterall,,, why would the system include
konflict with an application include file (kpathfiles) in such a
funny way... cause... yikes...
my Konfidance is krumbleing... or I am just kooky...
Hi Karl...
Solution:
#if 0
#ifndef YY_USE_CONST
#ifndef const
#define const
#endif
#endif
#endif
something is defining const somewhere...
what is the purpose of the two lex.yy.c sources... where is the -dist
file edited into the .c file ?
Kripes... krumble krumble krumble...
I think I can debug a rainy day...
--
| karron@nyu.edu (e-mail alias)Dan Karron, Ph.D.,Research Assistant Professor|
| Phone: 212 263 5210 Fax: 212 263 7190 New York University Medical Center |
| 560 First Avenue Digital Pager <1> 212 397 9330 |
| New York, New York 10016 <2> 10896 <3> <your-number-here> |